﻿@{
    Layout = "~/Views/Shared/OA/_Layout.cshtml";
}

@if (IsSectionDefined("Toolbar"))
{
    <div id="toolbar" class="toolbar">
        <div class="wrap">
            @RenderSection("Toolbar", false)
        </div>
    </div>
}

@RenderSection("Main")

@RenderBody()
<script>

    jQuery(function () {
        var height = $("body").height() - $("#toolbar").height() - 40;
        $(".detail").height(height);
    });

    function nav(url) {
        window.location = url;
    }

    function navTab(url) {
        top.navTab(url);
    }

    function back(reload, data, message, delay) {
        top.backTab(reload, data, message, delay)
    }

    function reload() {
        location.reload();
    }

</script>
